<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:t="http://myfaces.apache.org/tomahawk"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:s="http://myfaces.apache.org/sandbox"
                xmlns:jwork="http://irian.at/jsfatwork"
        >

    <jwork:inputText property="name" size="30"/>

    <jwork:inputText property="description" size="30"/>

    <h:outputLabel for="status" value="status" />
    <h:selectOneMenu id="status" value="#{taskBean.entity.status}" converter="TaskStatusEnumConverter">
        <s:selectItems var="v" itemValue="#{v.value}" itemLabel="#{v.value}" value="#{taskBean.taskStatusSelectItems}" />
    </h:selectOneMenu>
    <h:message for="status" styleClass="warning" />

    <h:outputLabel for="project" value="project" />
    <h:selectOneMenu id="project" value="#{taskBean.entity.project}" converter="#{taskBean.projectConverter}">
        <t:selectItems var="project" itemLabel="#{project.name}" itemValue="#{project}" value="#{projectBean.readAllEntities}" />
    </h:selectOneMenu>
    <h:message for="project" styleClass="warning" />

    <h:outputLabel for="resource" value="resources" />
    <h:selectManyListbox id="resource" value="#{taskBean.entity.resources}" converter="#{taskBean.resourceConverter}">
        <t:selectItems var="resource" itemLabel="#{resource.name}" itemValue="#{resource}" value="#{humanResourceBean.readAllEntities}" />
    </h:selectManyListbox>
    <h:message for="resource" styleClass="warning" />
</ui:composition>